<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
<link rel="shortcut icon" href="favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <link href="__STATIC__/layout/css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
     <link rel="stylesheet" type="text/css" href="__STATIC__/layout/css/plugins/webuploader/webuploader.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/layout/css/demo/webuploader-demo.css">
    <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
       .radio-inline input[type=radio] {
            margin-top: 4px
        }
        .note-editable{height: 150px}
    </style>
</head>

<body style="color:#333;padding:3px;">
    <div>
  <form method="get" class="form-inline" style="margin:10px">
    <table class="table-bordered table">
        <tr class="title_color">
            <td colspan="3">
              添加核查明细
            </td>
        </tr>
        <tr class="info text-center">
            <td>
                分区
            </td>
            <td>
                待核查条数
            </td>
            <td>
                操作
            </td>
        </tr>
       {volist name="arr" id="vo"}
        <tr class="text-center">
          <td>{$vo.title}</td>
          <td>{$vo.nums}</td>
          <td><a aid="{$vo.id}" class="xiafa">下发核查任务</a></td>
        </tr>
       {/volist}
       
    </table>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/summernote/summernote.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/summernote/summernote-zh-CN.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
    <script>
        $(".xiafa").click(function(){
          var thisxia=$(this);
          $.post("{:url('chazhaoxiafa')}",{aid:$(this).attr("aid")},function(re){
               var data=JSON.parse(re);
                        if(data.length>0){
                            for(var i=0;i<data.length;i++){
                            var flag=0;
                            parent.$(".apdids").each(function(){
                                //alert($(this).val());
                                if($(this).val()==data[i]["id"])
                                {
                                    flag=1;return false;
                                }
                            })
                            if(flag==0){
                                 var datastr="<tr class='datas'><input class='apdids' type='hidden' name='apdid[]' value='"+data[i]["id"]+"'/>";
                                 if(data[i]["type_id"]==2){
                                     datastr+="<td><a onclick='xiangqing("+data[i]["apid"]+")'>"+data[i]["apno"]+"</a></td>";
                                 }else if(data[i]["type_id"]==0){
                                     datastr+="<td><a onclick='fxiangqing("+data[i]["apid"]+")'>"+data[i]["apno"]+"</a></td>";
                                 }else{
                                    datastr+="<td><a onclick='jxiangqing("+data[i]["apid"]+")'>"+data[i]["apno"]+"</a></td>";
                                 }
                               
                                datastr+="<td>"+data[i]["apno"]+"_"+data[i]["apdno"]+"</td>";
                                datastr+="<td>"+data[i]["fenqu"]+"</td>";
                                datastr+="<td>"+data[i]["sheng"]+"</td>";
                                datastr+="<td>"+data[i]["shi"]+"</td>";
                                datastr+="<td>"+data[i]["type"]+"</td>";
                                datastr+="<td>"+data[i]["em_name"]+"</td>";
                                datastr+="<td>"+data[i]["jxs"]+"</td>";
                                datastr+="<td>"+data[i]["net"]+"</td>";
                                datastr+="<td><input type='text' name='dizhi[]' class='form-control' value='"+data[i]["dizhi"]+"'/></td>";
                                 datastr+="<td>"+data[i]["pays"]+"</td>";
                                 datastr+="<td>"+data[i]["pizhunweishui"]+"</td>";
                                 datastr+="<td>"+data[i]["ptime"]+"</td>";
                                  datastr+="<td><input type='button' value='删除' class='sc'/></td>";
                                datastr+="</tr>";
                                 parent.$("#tb").append(datastr);
                            }
                           
                            }
                        }
                  thisxia.parent().parent().remove();      
          })
        })

    </script>
</body>

</html>
